<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
        <tr>
            <th class="text-center">ID</th>
            <th width="15%" class="text-center">手机号</th>
            <th class="text-center" width="15%">昵称</th>
            <th class="text-center" width="20%">邮箱</th>
            <th class="text-center" width="25%">专业/科目</th>
            <th class="text-center" width="20%">注册方式</th>
        </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody>
            <tr class="jqgfirstrow" role="row">
                <td role="gridcell"><div class="table-first-id">&nbsp;</div></td>
                <td role="gridcell" width="15%"></td>
                <td role="gridcell" width="15%"></td>
                <td role="gridcell" width="20%"></td>
                <td role="gridcell" width="25%"></td>
                <td role="gridcell" width="20%"></td>
            </tr>
            <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="user : ${dataMap['list']}" th:attr="data-id=${user['id']}" th:attrappend="data-status=${user['status']}" th:attrprepend="id='user-'+${user['id']}">
                <td class="text-center">
                    <div class="table-first-id">
                        <input th:type="${#strings.isEmpty(selectType)}?'radio':${selectType}"  name="userId" th:value="${user['id']}" th:title="${user['nickname']}" class="i-checks"/>
                    </div>
                </td>
                <td class="text-center" >
                    <span th:if="${user['mobile']}==null or ${user['mobile']}==''">—</span>
                    <span th:if="${user['mobile']}!=null" th:text="${user['mobile']}"></span>
                </td>
                <td class="text-center" >
                    <span th:if="${user['nickname']}==null or ${user['nickname']}==''">—</span>
                    <span th:if="${user['nickname']}!=null" th:text="${user['nickname']}"></span>
                </td>
                <td class="text-center" >
                    <span th:if="${user['email']}==null or ${user['email']}==''">—</span>
                    <span th:if="${user['email']}!=null" th:text="${user['email']}"></span>
                </td>
                <td class="text-center" >
                    <th:block th:if="!${#lists.isEmpty(user['subjectList'])}">
                        <span class="pie" th:each="subject,subIndex : ${user['subjectList']}">
                            <th:block th:text="${subject['subjectName']}+'/'"></th:block>
                            <th:block th:if="!${#lists.isEmpty(subject['childSubjectList'])}" th:each="child,index : ${subject['childSubjectList']}">
                                <th:block th:if="${index.last} == false" th:text="${child}!=null?${child['subjectName']}:''+'/'"></th:block>
                                <th:block th:if="${index.last} == true" th:text="${child}!=null?${child['subjectName']}:''"></th:block>
                            </th:block>
                            <th:block th:if="${#lists.isEmpty(subject['childSubjectList'])}">全部科目</th:block>
                            <th:block th:if="${subIndex.last}==false" th:utext="'<br/>'"></th:block>
                        </span>
                    </th:block>
                    <th:block th:if="${#lists.isEmpty(user['subjectList'])}">
                        <span class="pie">—</span>
                    </th:block>
                </td>
                <td class="text-center">
                    <th:block th:each="userExpandFrom : ${userExpandFromList}">
                        <span th:if="${user['registerFrom']}==${userExpandFrom['key']}" th:text="${userExpandFrom['value']}"></span>
                    </th:block>
                </td>
                </tr>
            <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                <td colspan="6" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>
